package com.ruoyi.mall.product.domain.service.impl;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.function.Function;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.mall.product.domain.service.IPmsSpuAttrValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mall.product.domain.repository.PmsSpuAttrValueMapper;
import com.ruoyi.mall.product.domain.entity.PmsSpuAttrValue;

/**
 * spu属性值Service业务层处理
 *
 * @author zhangqishu
 * @date 2022-05-25
 */
@Service
public class PmsSpuAttrValueServiceImpl implements IPmsSpuAttrValueService
{
    @Autowired
    private PmsSpuAttrValueMapper pmsSpuAttrValueMapper;

    /**
     * 查询spu属性值
     *
     * @param id spu属性值主键
     * @return spu属性值
     */
    @Override
    public PmsSpuAttrValue selectPmsSpuAttrValueById(Long id)
    {
        return pmsSpuAttrValueMapper.selectPmsSpuAttrValueById(id);
    }

    /**
     * 查询spu属性值列表
     *
     * @param pmsSpuAttrValue spu属性值
     * @return spu属性值
     */
    @Override
    public List<PmsSpuAttrValue> selectPmsSpuAttrValueList(PmsSpuAttrValue pmsSpuAttrValue)
    {
        return pmsSpuAttrValueMapper.selectPmsSpuAttrValueList(pmsSpuAttrValue);
    }

    /**
     * 新增spu属性值
     *
     * @param pmsSpuAttrValue spu属性值
     * @return 结果
     */
    @Override
    public int insertPmsSpuAttrValue(PmsSpuAttrValue pmsSpuAttrValue)
    {
        return pmsSpuAttrValueMapper.insertPmsSpuAttrValue(pmsSpuAttrValue);
    }

    /**
     * 修改spu属性值
     *
     * @param pmsSpuAttrValue spu属性值
     * @return 结果
     */
    @Override
    public int updatePmsSpuAttrValue(PmsSpuAttrValue pmsSpuAttrValue)
    {
        return pmsSpuAttrValueMapper.updatePmsSpuAttrValue(pmsSpuAttrValue);
    }

    /**
     * 批量删除spu属性值
     *
     * @param ids 需要删除的spu属性值主键
     * @return 结果
     */
    @Override
    public int deletePmsSpuAttrValueByIds(Long[] ids)
    {
        return pmsSpuAttrValueMapper.deletePmsSpuAttrValueByIds(ids);
    }

    /**
     * 删除spu属性值信息
     *
     * @param id spu属性值主键
     * @return 结果
     */
    @Override
    public int deletePmsSpuAttrValueById(Long id)
    {
        return pmsSpuAttrValueMapper.deletePmsSpuAttrValueById(id);
    }

    @Override
    public boolean saveBatch(Collection<PmsSpuAttrValue> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdateBatch(Collection<PmsSpuAttrValue> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean updateBatchById(Collection<PmsSpuAttrValue> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdate(PmsSpuAttrValue entity) {
        return false;
    }

    @Override
    public PmsSpuAttrValue getOne(Wrapper<PmsSpuAttrValue> queryWrapper, boolean throwEx) {
        return null;
    }

    @Override
    public Map<String, Object> getMap(Wrapper<PmsSpuAttrValue> queryWrapper) {
        return null;
    }

    @Override
    public <V> V getObj(Wrapper<PmsSpuAttrValue> queryWrapper, Function<? super Object, V> mapper) {
        return null;
    }

    @Override
    public BaseMapper<PmsSpuAttrValue> getBaseMapper() {
        return null;
    }
}
